package com.activiti.biz;

import com.activiti.dao.BaoxiaoApproveDao;
import com.activiti.po.BaoxiaoApprove;

public class BaoxiaoApproveBiz {
	private BaoxiaoApproveDao baoxiaoApproveDao;

	public BaoxiaoApproveDao getBaoxiaoApproveDao() {
		return baoxiaoApproveDao;
	}

	public void setBaoxiaoApproveDao(BaoxiaoApproveDao baoxiaoApproveDao) {
		this.baoxiaoApproveDao = baoxiaoApproveDao;
	}
	
	public void addBaoxiaoApprove(BaoxiaoApprove baoxiaoApprove){
		baoxiaoApproveDao.insert(baoxiaoApprove);
	}
	
	public void updateBaoxiaoApprove(BaoxiaoApprove baoxiaoApprove){
		baoxiaoApproveDao.update(baoxiaoApprove);
	}
	
	public void deleteBaoxiaoApprove(BaoxiaoApprove baoxiaoApprove){
		baoxiaoApproveDao.delete(baoxiaoApprove);
	}
	
	public void deleteBaoxiaoApprove(Short id){
		baoxiaoApproveDao.delete(id);
	}
	
	public BaoxiaoApprove getBaoxiaoApprove(Short id){
		return baoxiaoApproveDao.get(id);
	}
}
